package com.beidouapp.mapper;

import java.util.List;
import java.util.Map;

import com.beidouapp.domain.pojo.Role;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import com.beidouapp.domain.example.OrganizationExample;
import com.beidouapp.domain.pojo.Organization;
import com.beidouapp.domain.pojo.OrganizationExtend;

public interface OrganizationMapper extends BaseMapper<Organization>{

    public int removeEntryBatch(Map<String, Object> params);


    //-----------------------
    int countByExample(OrganizationExample example);

    int deleteByExample(OrganizationExample example);

    int insert(Organization record);

    int insertSelective(Organization record);

    List<Organization> selectByExample(OrganizationExample example);

    int updateByExampleSelective(@Param("record") Organization record, @Param("example") OrganizationExample example);

    int updateByExample(@Param("record") Organization record, @Param("example") OrganizationExample example);
    
    int updateByPrimaryKeySelective(Organization record);

    int updateByPrimaryKey(Organization record);
    
    public List<OrganizationExtend> findAllChildOrgWithPageByMap(Map<String, Object> params, RowBounds rowBounds);

	public Integer findAllChildOrgCountWithPageByMap(Map<String, Object> sMap);
}